#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define OJ_TEST 0
#define LOCAL_TEST 0

#define M 901

static int max(int a, int b){ return a>b?a:b; }
static int min(int a, int b) { return a<b?a:b; }


static void solve(void){
	int num1, num2;
	int i, j, a, b, c, s, wc;
	while(~scanf("%d%d", &num1, &num2)){
		if(num1==0 && num2==0) break;
		wc = 0; c=0;
		while(num1 || num2){
			s=num1%10 + num2%10 + c;
			c =s/10;
			wc += c;
			num1 /=10; num2 /=10;
		}
		if(wc==1){
			puts("1 carry operation.");
		}else if(wc==0){
			puts("No carry operation.");
		}else{
			printf("%d carry operations.\n", wc);
		}
	}

}
#if OJ_TEST
	int main(int ac, char *av[]){
		solve();
		return 0;
	}
#elif  LOCAL_TEST
	void run(void){
		solve();
	}

#else

#endif
